package com.czp.ssm.shiro;

import java.util.LinkedHashMap;

public class FilterChainDefinitionMapBuilder {

	public LinkedHashMap<String, String> buildFilterChainDefinitionMap(){
		LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();
		System.out.println("------------进入buildFilterChainDefinitionMap");
		map.put("/static/**", "anon");
		map.put("/planeController/toPlaneIndex", "anon");
		map.put("/userController/createCode", "anon");
		map.put("/userController/toSuxingAdminView", "anon");
//		map.put("/shiroController/login", "authc,roles[user]");
		map.put("/shiroController/login", "anon");
		map.put("/shiroController/toAdminIndex", "anon");
		map.put("/userController/topView", "anon");
		map.put("/userController/leftView", "anon");
		map.put("/userController/adminInfo", "anon");
		map.put("/userController/bottomView", "anon");
		map.put("/userController/toAlterPassword", "anon,roles[user]");
		map.put("/userController/toRegister", "anon,roles[user]");
		
		map.put("/**", "authc");
		
		return map;
	}
	
}
